      SUBROUTINE SETUP
      RETURN
      END
C   HS78
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS78'/
      DATA (X(I),I=1,5)/-2.0D0,1.5D0,2.D0,2*-1.D0/
      DATA N/5/ , NH/3/ , NG/ 0/
      DATA DEL0/0.04D0/ ,TAU0/1.D0/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,3)/-1,0,0,-1,0,0,-1,0,0,-1,0,0/
      END
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),FX
      ICF=ICF+1
      FX=X(1)*X(2)*X(3)*X(4)*X(5)
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX),X34,TERM,X12
      ICGF=ICGF+1
      X34=X(3)*X(4)
      TERM=X34*X(5)
      GRADF(1)=X(2)*TERM
      GRADF(2)=X(1)*TERM
      X12=X(1)*X(2)
      TERM=X12*X(5)
      GRADF(3)=X(4)*TERM
      GRADF(4)=X(3)*TERM
      GRADF(5)=X12*X34
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),HXI
      CRES(I)=CRES(I)+1
      GOTO (100,200,300),I
  100 CONTINUE
      HXI=X(1)**2+X(2)**2+X(3)**2+X(4)**2+X(5)**2-10.D0
      RETURN
  200 CONTINUE
      HXI=X(2)*X(3)-5.D0*X(4)*X(5)
      RETURN
  300 CONTINUE
      HXI=X(1)**3+X(2)**3+1.D0
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I,J
      DOUBLE PRECISION X(NX),GRADHI(NX)
      CGRES(I)=CGRES(I)+1
      GOTO(100,300,400),I
  100 CONTINUE
      DO      200      J=1,5
      GRADHI(J)=2.D0*X(J)
  200 CONTINUE
      RETURN
  300 CONTINUE
      GRADHI(1)=0.D0
      GRADHI(2)=X(3)
      GRADHI(3)=X(2)
      GRADHI(4)=-5.D0*X(5)
      GRADHI(5)=-5.D0*X(4)
      RETURN
  400 CONTINUE
      GRADHI(1)= 3.D0*X(1)**2
      GRADHI(2)= 3.D0*X(2)**2
      DO      500      J=1,3
      GRADHI(J+2)=0.D0
  500 CONTINUE
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GXI
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      RETURN
      END

